Configure Python on Windows
Configure Python on Windows
This page will walk you through installing Python and setting up your environment on Windows.
Installing Python
- Go to python.org/downloads and download the latest Python 3 installer.
- Run the installer.
- Important: On the first screen, tick "Add Python to PATH" before clicking Install Now.
- Once complete, open Command Prompt and verify the installation:
python --version
If you see
pythonis not recognised, restart your terminal and try again. If it still fails, check that Python was added to your PATH via System Properties → Environment Variables.
Installing VS Code
- Download VS Code.
- Install and open it.
- Go to the Extensions panel (Ctrl+Shift+X) and search for Python — install the extension by Microsoft.
Creating the Course Folder
Open Command Prompt and run:
mkdir python-101
cd python-101
Setting Up a Virtual Environment
It is good practice to use a virtual environment for every project. This keeps your installed packages separate from the global Python installation.
python -m venv .venv
.venv\Scripts\activate
You should now see (.venv) in your terminal prompt.
You will need to run
.venv\Scripts\activateeach time you open a new terminal. Grade 8 covers virtual environments in detail.
Verifying Your Setup
With your virtual environment active, run:
python --version
pip --version
Both should return version numbers. You are ready to start Grade 1.
Notes
- On Windows,
pythonandpiprefer to the version installed in your active environment. - If
pythonis not found butpython3works, usepython3throughout the course. - VS Code will usually detect your
.venvautomatically — if prompted to select an interpreter, choose the one inside.venv.